package demo1;

public class Test {
    public static void main(String[] args) throws CloneNotSupportedException {//2.抛出异常
        Person person1=new Person(2,90.9,"qq");
        Person person2=(Person) person1.clone();//3.向下转型
        System.out.println(person1.money.money);
        System.out.println(person2.money.money);
        System.out.println("========");
        person2.money.money=19.9;
        System.out.println(person1.money.money);
        System.out.println(person2.money.money);
    }
}
